<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>7.关于展开对象</title>
  </head>
  <body>
    <script type="text/javascript" >
      let obj1 = {x:100,y:200}
      let arr = [1,3,5,7,9]

      let obj2 = {
        a:1,
        b:2,
        ...obj1
      }

      // console.log(...arr)
      // console.log({...obj1})
    </script>
  </body>
</html>